package opp.Demo06;

public class Student extends Person  {
    private String name = "suzihao";
    public void print(){
        System.out.println("Student");

    }
    public void test(String name){
        System.out.println(name);//苏子豪
        System.out.println(this.name);//suzihao
        System.out.println(super.name);//su-account


    }
    //私有的东西无法被继承
    public void test1(){
        print();
        this.print();
        super.print();
    }

}
